//
//  TabFrameController.h
//  newTabbar
//
//  Created by xfttt on 14-6-3.
//  Copyright (c) 2014年 xftt. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol TabFrameControllerDelegate;
@interface TabFrameController : UIViewController
{
    UIView *tabView;
    UIView *contentView;
    BOOL _isInitialized;
}
@property (nonatomic, retain) UIViewController *tabViewController;
@property (nonatomic, copy) NSArray *viewControllers;
@property (nonatomic, weak) UIViewController *selectedViewController;
@property (nonatomic, assign) NSUInteger selectedIndex;
@property (nonatomic, weak) id <TabFrameControllerDelegate> delegate;
@end
@protocol TabFrameControllerDelegate <NSObject>
@optional
- (BOOL)TabFrameController:(TabFrameController *)tabBarController shouldSelectViewController:(UIViewController *)viewController atIndex:(NSUInteger)index;
- (void)TabFrameController:(TabFrameController *)tabBarController didSelectViewController:(UIViewController *)viewController atIndex:(NSUInteger)index;

- (void)TabFrameController:(TabFrameController *)tabBarController didSelectOldViewController:(UIViewController *)viewController atIndex:(NSUInteger)index;
@end
@interface UIViewController (TabFrame)
@property(nonatomic,retain) TabFrameController *tabFrameController;
@end
